-
Notifications
You must be signed in to change notification settings - Fork 8
Allow reordering of array literal expressions #1323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…o override arr initializer
0bac5a5 to
c04e5c3
Compare
c04e5c3 to
8828462
Compare
wnvko
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the end we will sort all the IGX things after everything else. Hope this will not break anything.
|
This logic does not sort the imports of projects created with the CLI, it is related to the sorting of imports of projects created with the CodeGen and since this was tested yesterday I changed the status of the task to "Completed". |
…rdering-array-literals

Closes AzureDevOps#34206
This PR adds the ability to sort array literal expressions in the
TypeScriptAstTransformerand then uses that to allow ordering of property assignments inAngulardecorators. The targeted property assignment must be an array literal expression.Additionally, some minor enhancements have been introduced like the
overrideoption when adding new members to object literals - if the initializer of the new member exists and is an array literal, by default, the transformer will append all new values to the currently existing array literal, removing any duplicates. With theoverrideoption set, the transformer will replace the entire initializer with the new values.Also, some new types have been added to reduce the parameter lists for some methods and new enumerations to better indicate
Angularspecific keywords related to decorators.The PR also bumps
TypeScriptto5.5.4to match the version of the rest of the sub-projects as a mismatch between the versions caused a build error.